# -*- encoding: utf-8 -*-
"""

PyCharm 将图像转化为一个黑白的图像
2024年10月20日15时35分
by wenyang

"""
from PIL import Image

def main():
    img_one = Image.open("./image/lena_color_512.tif", "r")
    img_one.show()
    img_two = img_one.convert("L")
    img_two.show()


if __name__ == "__main__":
    main()
